<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnConfirmEndTimeInReviewRequestNodeTable extends AbstractMigration
{
    public function up()
    {
        $this->table("review_request_node")
            ->addColumn('confirm_end_time', 'integer', ['null' => false, 'limit' => 11, 'default' => 0, 'signed' => false, 'comment' => '确认截至时间'])
            ->save();
    }

    public function down()
    {
        $this->table('review_request_node')->removeColumn('confirm_end_time')->save();
    }
}
